# Run JavaScript code
Use the `runCode`/`run_code` method to run JavaScript code inside the sandbox.
You'll need to pass the `language` parameter with value `javascript` or `js`.
<CodeGroup>
```js
import { Sandbox } from '@e2b/code-interpreter'

const sbx = await Sandbox.create()
const execution = await sbx.runCode('console.log("Hello, world!")', { language: 'js' })
console.log(execution)
```
```python
from e2b_code_interpreter import Sandbox

sbx = Sandbox()
execution = sbx.run_code('console.log("Hello, world!")', { language: 'js' })
print(execution)
```
</CodeGroup>